import os
import pytest
import core
pytest_args = ['-v',
               '-s',
               '--capture=sys',
               '--clean-alluredir',
               '--alluredir=allure-results',
               #'C:\peipei_study\接口自动化\examples',
               r'C:\peipei_study\接口自动化\core\Apirun.py']

pytest.main(pytest_args)


os.system('allure generate -c -o allure-report')

from allure_combine import combine_allure
combine_allure("./allure-report")